package com.zhucx.loader.strategy;

import com.zhucx.loader.PageLoader;
import com.zhucx.model.PageRequest;
import com.zhucx.utils.JsoupUtil;
import org.jsoup.nodes.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * jsoup page loader
 *
 */
@Service
public class JsoupPageLoader extends PageLoader {

    @Override
    public Document load(PageRequest pageRequest) {
        return new JsoupUtil().load(pageRequest,"get");
    }

}
